package com.tedu.bill.demo4;

import java.io.Serializable;

/**
 * Author：毕龙
 * Date: 2024/5/28 10:40
 */
public class User implements Serializable {
    private String username;
    private String password;
    //防止对象在传输过程对象的数据不一致
    //private static final long serialVersionUID = -684979754667710L;

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
